{% extends "base.html" %} {% block title %}My Appointments - Quick Care Connect{% endblock %} {% block content %}
| Doctor | Date & Time | Type | Disease Category | Status | Payment Status | Charges | Actions |
|---|---|---|---|---|---|---|---|
|
{{ appointment.doctor.user.name }}
{{ appointment.doctor.specialization }} |
{{
appointment.appointment_date.strftime('%B %d, %Y') }}
{{ appointment.appointment_time.strftime('%I:%M %p') }} |
{{ appointment.appointment_type.title() }} | {{ appointment.disease_category }} | {% if appointment.status in ['rejected', 'cancelled', 'no_show'] %} {{ appointment.status.replace('_', ' ').title() }} {% elif 'expired' in appointment.status %} {% if appointment.status == 'expired_mutual_noshow' %} Mutual No-Show {% elif appointment.status == 'expired_patient_noshow' %} Missed Appointment {% elif appointment.status == 'expired_provider_failure' %} Doctor Missed {% else %} {{ appointment.status.replace('_', ' ').title() }} {% endif %} {% elif appointment.status == 'pending' %} Pending {% else %} {{ appointment.status.title() }} {% endif %} | {% if appointment.status == 'approved' %} {% if appointment.payment_status == 'pending' %} Payment Pending {% elif appointment.payment_status == 'submitted' %} Under Review {% elif appointment.payment_status == 'approved' %} Payment Approved {% elif appointment.payment_status == 'rejected' %} Payment Rejected {% endif %} {% elif appointment.payment_status == 'disputed' %} Payment Disputed {% else %} - {% endif %} | PKR {{ "%.0f"|format(appointment.charges) }} |
View
{% if appointment.status == 'approved' and appointment.payment_status ==
'approved' and not appointment.patient_completed %}
{% if appointment.doctor_completed %}
{% else %}
Waiting for Doctor
{% endif %}
{% elif appointment.status == 'approved' and appointment.patient_completed
and not appointment.doctor_completed %}
Pending Doctor
{% endif %}
{% if appointment.payment_status == 'approved' and appointment.status ==
'approved' %}
Chat
{% elif appointment.status in ['completed', 'completed_pending_review', 'disputed'] %}
View Chat
{% endif %}
{% if appointment.prescription %}
My Prescription
{% endif %}
{% if appointment.status == 'completed_pending_review' and not appointment.patient_completed and (not appointment.completion_review_deadline or now_local() < appointment.completion_review_deadline) %}
{% if appointment.review or appointment.patient_review_skipped %}
{% else %}
Review first
{% endif %}
{% elif appointment.status == 'completed_pending_review' and appointment.patient_completed %}
Confirmed
{% elif appointment.status == 'disputed' %}
Under Review
{% endif %}
|